<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
		<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
		<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
		<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>

		<title>后台管理</title>
		<style>
			* {margin: 0;padding: 0;}
			body, div {margin: 0;padding: 0;}
		</style>
	</head>
	<body class="body_ifm">
		<div class="infoboxp">
			<div class="admin_new_tip">
				<a href="javascript:;" class="admin_new_tip_close"></a>
				<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
				<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
				<div class="admin_new_tip_list_cont">
					<div class="admin_new_tip_list">该页面展示了网站个人会员信息。</div>
					<div class="admin_new_tip_list">
						<span class="admin_new_comsj">
							{yun:}if is_array($member){/yun}
							最近登录时间：
							{yun:}$member.login_date|date_format:'%Y-%m-%d'{/yun}
							{yun:}/if{/yun}
						</span>
						<span class="admin_new_comsj"> {yun:}if is_array($member){/yun}
							注册时间：
							{yun:}$member.reg_date|date_format:'%Y-%m-%d'{/yun}
							{yun:}/if{/yun} </span>
						<span class="admin_new_comsj"> {yun:}if is_array($member){/yun}
							注册IP： {yun:}$member.reg_ip{/yun}
							{yun:}/if{/yun}
						</span>
						<span class="admin_new_comsj">
							{yun:}if is_array($member){/yun}
							登录IP：{yun:}$member.login_ip{/yun}
							{yun:}/if{/yun} </span>
						<span class="admin_new_comsj"> {yun:}if is_array($member){/yun}
							登录次数：{yun:}$member.login_hits{/yun}
							{yun:}/if{/yun} </span>
					</div>
				</div>
			</div>

			<div class="main_tag mt10">
				<div class="tag_box">
					<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
					<form class="layui-form" name="myform" target="supportiframe" action="index.php?m=user_member&c=editSave" method="post" onsubmit="return useredit()" enctype="multipart/form-data">
						<table width="100%" class="table_form table_form_thr" style="background:#fff;">
							<tr>
								<td colspan="4" bgcolor="#f0f6fb">
									<div class="admin_bold">账号信息</div>
								</td>
							</tr>
							<tr>
								<th width="140">用户名：</th>
								<td>
									<input type="text" value="{yun:}$member.username{/yun}" name="username" id="username" class="admin_comedity_text">
									<a href="javascript:;" onClick="editname('{yun:}$member.username{/yun}');" class="admin_comedity_text_a">修改用户名</a>
								</td>
							</tr>
							<tr>
								<th width="160">密码：</th>
								<td><input type="text" value="" name="password" class="admin_comedity_text">
									<span class="admin_web_tip">不修改请留空!</span></td>
							</tr>
							<tr>
								<td colspan="4" bgcolor="#f0f6fb">
									<div class="admin_bold">基本资料</div>
								</td>
							</tr>
							<tr>
								<th>姓名：</th>
								<td><input name="name" type="text" maxlength="50" class="admin_comedity_text" value="{yun:}$row.name{/yun}" /></td>
							</tr>
							<tr>
								<th>性别：</th>
								<td>
									<div class="layui-input-block">
										<div class="layui-input-inline">
											<select name="sex" lay-filter="" id="sex">
												<option>请选择</option>
												{yun:}foreach from=$user_sex item=v key=j{/yun}
												<option value="{yun:}$j{/yun}" {yun:}if $row.sex==$j{/yun} selected {yun:}/if{/yun}> {yun:}$v{/yun}
												</option>
												{yun:}/foreach{/yun}
											</select>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<th>出生年月：</th>
								<td colspan="3">
									<input name="birthday" id="birthday" type="text" maxlength="50" value="{yun:}$row.birthday{/yun}" class="input-text" />
								</td>
							</tr>
							<tr class="admin_table_trbg">
								<th>工作经验：</th>
								<td>
									<div class="layui-input-block">
										<div class="layui-input-inline">
											<select name="exp" id="exp" lay-verify="">
												<option>请选择</option>
												{yun:}foreach from=$userdata.user_word item=v{/yun}
												<option value="{yun:}$v{/yun}" {yun:}if $row.exp==$v{/yun} selected {yun:}/if{/yun}>{yun:}$userclass_name[$v]{/yun}</option>
												{yun:}/foreach{/yun}
											</select>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<th>教育程度：</th>
								<td>
									<div class="layui-form-item">
										<div class="layui-input-block">
											<div class="layui-input-inline">
												<select name="edu" id="edu" lay-verify="">
													<option>请选择</option>
													{yun:}foreach from=$userdata.user_edu item=v{/yun}
													<option value="{yun:}$v{/yun}" {yun:}if $row.edu==$v{/yun} selected {yun:}/if{/yun}>{yun:}$userclass_name[$v]{/yun}</option>
													{yun:}/foreach{/yun}
												</select>
											</div>
										</div>
									</div>
								</td>
							</tr>
							<tr class="admin_table_trbg">
								<th>联系手机：</th>
								<td><input type="text" value="{yun:}$member.moblie{/yun}" name="moblie" class="input-text">
									<font color="gray"></font>
								</td>
							</tr>
							<tr>
								<th>E-mail：</th>
								<td><input type="text" value="{yun:}$member.email{/yun}" name="email" class="input-text">
									<font color="gray"></font>
								</td>
							</tr>
							<tr>
								<th>户籍所在地：</th>
								<td><input name="domicile" type="text" class="input-text" maxlength="255" size="40" value="{yun:}$row.domicile{/yun}" /></td>
							</tr>
							<tr>
								<th>现居住地：</th>
								<td><input name="living" type="text" class="input-text" maxlength="255" size="40" value="{yun:}$row.living{/yun}" /></td>
							</tr>
							<tr>
								<th>婚姻状况：</th>
								<td>
									<div class="layui-input-block">
										<div class="layui-input-inline">
											<select name="marriage" id="marriage" lay-verify="">
												<option>请选择</option>
												{yun:}foreach from=$userdata.user_marriage item=v{/yun}
												<option value="{yun:}$v{/yun}" {yun:}if $row.marriage==$v{/yun} selected {yun:}/if{/yun}>{yun:}$userclass_name[$v]{/yun}</option>
												{yun:}/foreach{/yun}
											</select>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<th>身高：</th>
								<td>
									<input type="text" name="height" class="admin_comedity_text" value="{yun:}$row.height{/yun}" size="10" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')" />CM 
								</td>
							</tr>
							<tr class="admin_table_trbg">
								<th>民族：</th>
								<td><input type="text" name="nationality" class="admin_comedity_text" value="{yun:}$row.nationality{/yun}" size="15" /></td>
							</tr>
							<tr>
								<th>体重：</th>
								<td>
									<input type="text" name="weight" class="admin_comedity_text" value="{yun:}$row.weight{/yun}" size="12" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')" />kg 
								</td>
							</tr>
							<tr>
								<th>证件号码：</th>
								<td><input name="idcard" type="text" size="30" class="input-text" maxlength="20" value="{yun:}$row.idcard{/yun}" onKeyUp="this.value=this.value.replace(/[^0-9Xx.]/g,'')" /></td>
							</tr>
							<tr class="admin_table_trbg">
								<th>详细地址：</th>
								<td><input name="address" type="text" class="input-text" maxlength="255" size="40" value="{yun:}$row.address{/yun}" /></td>
							</tr>
							<tr>
								<th>个人主页/博客：</th>
								<td><input name="homepage" type="text" class="input-text" maxlength="255" size="40" value="{yun:}$row.homepage{/yun}" /></td>
							</tr>
							<tr class="admin_table_trbg">
								<th>QQ：</th>
								<td colspan="4"><input name="qq" type="text" class="input-text" value="{yun:}$row.qq{/yun}" /></td>
							</tr>
							<tr class="admin_table_trbg">
								<th width="160">个人二维码：</th>
								<td colspan="4">
									<button type="button" class="yun_bth_pic noupload" lay-data="{imgid: 'ewm'}">上传图片</button>
									<input type="hidden" id="laynoupload" value="1"/>
									<img id="ewm" src="{yun:}$row.wxewm{/yun}" width="60" height="60" {yun:}if !$row.wxewm{/yun}class="none"{yun:}/if{/yun}>
								</td> 
							</tr> 
							<tr class="admin_table_trbg">
								<th>自我介绍：</th>
								<td colspan="3"><textarea name="description" id="description" class="admin_comdit_textarea">{yun:}$row.description{/yun}</textarea></td>
							</tr>
							<tr>
								<th>状态：</th>
								<td colspan="3">
									<div class="layui-form-item">
										<div class="layui-input-block">
											<div class="admin_examine_right">
												<input name="status" {yun:}if $member.status=='1' {/yun}checked{yun:}/if{/yun} value="1" title="正常" type="radio" />
												<input name="status" {yun:}if $member.status=='2' {/yun}checked{yun:}/if{/yun} value="2" title="锁定" type="radio" />
											</div>
										</div>
									</div>
									<font color="gray"></font>
								</td>
							</tr>
							<tr>
								<th></th>
								<td colspan="3">
									<input type="hidden" name="uid" id="uid" value="{yun:}$member.uid{/yun}" />
									<input type="hidden" name="lasturl" value="{yun:}$lasturl{/yun}">
									<input class="layui-btn layui-btn-normal" type="submit" name="submit" value="&nbsp;修 改&nbsp;" />
									<input class="layui-btn layui-btn-normal" type="reset" name="reset" value="&nbsp;重 置 &nbsp;" />
								</td>
							</tr>
						</table>
						<input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
					</form>
				</div>
			</div>
		</div>
		<script>
			var weburl = '{yun:}$config.sy_weburl{/yun}';
			layui.use(['layer', 'form', 'laydate'], function() {
				var layer = layui.layer,
					form = layui.form,
					laydate = layui.laydate,
					$ = layui.$;
					
					laydate.render({
						elem: '#birthday',
						max: '2018-12-31',
						value: '{yun:}if $row.birthday{/yun}{yun:}$row.birthday{/yun}{yun:}else{/yun}1988-08-08{yun:}/if{/yun}'
					});
			});
			
			function useredit(){
				loadlayer();
			}
		</script>
		<script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script>
	</body>
</html>
